import request from "@/utils/request";
import { parseStrEmpty } from "@/utils/ruoyi";

// 上游渠道（全局）采量省市评分新增、编辑
export function addOrEdit(data) {
  return request({
    url: "/config/pickCity/v1.0.0/addOrEdit",
    method: "post",
    data: data,
  });
}

// 上游渠道（全局）采量省市评分删除
export function deleteById(id) {
  return request({
    url: "/config/pickCity/v1.0.0/deleteById",
    method: "get",
    params: {
      id: parseStrEmpty(id),
    },
  });
}

// 上游渠道（全局）采量省市评分列表分页查询
export function queryCityConfigByPage(data) {
  return request({
    url: "/config/pickCity/v1.0.0/queryCityConfigByPage",
    method: "post",
    data: data,
  });
}
